import React, { lazy } from 'react'
// import { Navigate} from 'react-router-dom'

import Index from '../views/discover'
// import Mine from '../views/mine'
const Mine = lazy(() => import('../views/mine'))
const ChildOne = lazy(() => import('../views/mine/childOne'))
const ChildTwo = lazy(() => import('../views/mine/childTwo'))

const routes = [
  {
    path:'/',
    element:<Index />
  },
  {
    path:'/mine',
    element:<Mine />,
    children:[
      {
        path:'/mine/childone',
        element:<ChildOne />
      },
      {
        path:'/mine/childtwo',
        element:<ChildTwo />
      }
    ]
  }
]

export default routes